export function register() {
  if (process.env.NEXT_RUNTIME === 'nodejs') {
    const secret = process.env.BETTER_AUTH_SECRET;
    if (!secret) throw new Error('env var BETTER_AUTH_SECRET not existed');
    fetch('http://127.0.0.1:3000/api/init', {
      method: 'POST',
      headers: {
        Auth: secret ?? '',
      },
    });
  }
}
